package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.ChangeNickName;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.CHANGE_NICKNAME)
public class ConnChangeNickName extends BaseAsyPost<ChangeNickName>{

    public String member_id,username;


    public ConnChangeNickName(String member_id, String username, AsyCallBack<ChangeNickName> asyCallBack) {
        super(asyCallBack);
        this.member_id=member_id;
        this.username=username;


    }

    @Override
    protected ChangeNickName parser(JSONObject object) throws Exception {
        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson=new Gson();

        ChangeNickName loginBean=new ChangeNickName();

        loginBean=gson.fromJson(object.toString(),ChangeNickName.class);


        return loginBean;




    }
}



